package com.ruoyi.web.controller.mobile;


import cn.hutool.core.util.RandomUtil;
import com.alibaba.fastjson2.JSON;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.MessageUtils;
import com.ruoyi.common.utils.ServletUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.framework.config.properties.RsaKeyProperties;
import com.ruoyi.framework.manager.AsyncManager;
import com.ruoyi.framework.manager.factory.AsyncFactory;
import com.ruoyi.framework.util.RsaUtils;
import com.ruoyi.framework.web.service.SysLoginService;
import com.ruoyi.framework.web.service.TokenService;
import com.ruoyi.mobile.user.domain.vo.*;
import com.ruoyi.sms.service.DynamicMessageService;
import com.ruoyi.system.domain.vo.business.WcPatentApplicationRecommendationVO;
import com.ruoyi.system.dto.handleRecord.IdSearchVO;
import com.ruoyi.system.service.IWcPatentApplicationService;
import com.ruoyi.system.service.impl.MobileUserServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.rmi.ServerException;
import java.security.PrivateKey;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

@RestController
@RequestMapping("/recommendation")
@Api(tags = "【新】电影核查-反馈国家电影信息")
public class WcPatentController extends BaseController {

    @Autowired
    private IWcPatentApplicationService service;
    /**
     * 新增保存剧本备案申请
     */
    @ApiOperation("【新】查询反馈国家电影局信息")
    @GetMapping("/get_recommendation")
    public AjaxResult<List<WcPatentApplicationRecommendationVO>> getList(@ApiParam(value = "查询参数") @ModelAttribute IdSearchVO saveVO) throws Exception {
        return AjaxResult.success(service.getRecommendationList(saveVO));
    }

}
